/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2012-2019. All rights reserved.
 */

package com.huawei.chengdu.meetingdemo.util;

import com.huawei.chengdu.meetingdemo.view.IViewDataObserver;

/**
 * 类名：GlobalHandlerAdapter
 * 描述：用来包装service 和 view之间的传值，以衔接非UI线程和UI线程通过android.os.handler进行的处理里
 */
public class GlobalHandlerAdapter {
    /**
     * 包装的service对象
     */
    public IViewDataObserver dataObserver;

    /**
     * 指示当前变化的数据类型的key
     */
    public int indKey = -1;

    /**
     * 传递的任意的参数对象
     */
    public Object obj = null;

    public GlobalHandlerAdapter(IViewDataObserver sev, int id) {
        this(sev, id, null);
    }

    public GlobalHandlerAdapter(IViewDataObserver sev, int id, Object object) {
        dataObserver = sev;
        indKey = id;
        obj = object;
    }
}
